<?php

/**
 * sfGuardUserAdminForm for admin generators
 *
 * @package    sfDoctrineGuardPlugin
 * @subpackage form
 * @author     Fabien Potencier <fabien.potencier@symfony-project.com>
 * @version    SVN: $Id: sfGuardUserAdminForm.class.php 23536 2009-11-02 21:41:21Z Kris.Wallsmith $
 */
class alumnoUsuarioForm extends BasesfGuardUserAdminForm
{
  /**
   * @see sfForm
   */
  public function configure()
  {
    unset(
      $this['is_active'],
      $this['is_super_admin'],
      $this['groups_list'],
      $this['created_at'],
      $this['updated_at'],
      $this['created_by'],
      $this['updated_by']

      
    );
    $this->getWidget('permissions_list')->setOption('multiple', false);
         
       //  $this->setWidget('groups_list', new sfWidgetFormInputHidden());
    
        unset($this->widgetSchema['email']);
        unset($this->widgetSchema['first_name']);
        unset($this->widgetSchema['last_name']);
        unset($this->widgetSchema['email_address']);
        unset($this->widgetSchema['sede_id']);
        unset($this->widgetSchema['permissions_list']);

        unset($this->validatorSchema['email']);
        unset($this->validatorSchema['first_name']);
        unset($this->validatorSchema['last_name']);
        unset($this->validatorSchema['email_address']);
        unset($this->validatorSchema['sede_id']);
        unset($this->validatorSchema['permission_id']);
         

      $this->validatorSchema['password']  = new sfValidatorString(array(
                'max_length' => 128,
                'required' => true)
      );
  }
}
